package com.iswust.mianzhoutong.sign.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.security.KeyStore;
import java.util.Date;

/**
 * @author liushuai
 * @create 2022-07-14 17:44
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
public class SignSummary {

    /**
     * 数据库自增id
     */
    private Integer id;

    /**
     * 用户标识id
     */
    private Integer userId;

    /**
     * 剩余补签次数
     */
    private Integer monthReplenishNumbers;

    /**
     *最新的签到日期
     */
    private Date lastSignDate;

    /**
     * 本月累计签到天数
     */
    private Integer monthSignDays;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;


    public SignSummary(Integer userId, Integer monthReplenishNumbers, Date lastSignDate) {
        this.userId = userId;
        this.monthReplenishNumbers = monthReplenishNumbers;
        this.lastSignDate = lastSignDate;
    }
}
